<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk">

<f:view>
<f:loadBundle var="text" basename="#{cpxsList.bundleName}"/>
    <head>
        <title>#{text['cpxsList.title']}</title>
        <meta name="heading" content="#{text['cpxsList.heading']}"/>
        <meta name="menu" content="CpxsMenu"/>
    </head>
<body id="cpxsList">
<h:form id="editCpxs">

<h:commandButton value="#{text['button.add']}" action="add" id="add" immediate="true" styleClass="button"/>
<h:commandButton value="#{text['button.done']}" action="mainMenu" id="cancel" immediate="true" styleClass="button" style="margin-left: 5px"/>
<h:commandButton value="#{text['button.delete']}" action="#{cpxsList.delete}" id="delete" onclick="bCancel=true; return confirmDelete('Cpxs')" styleClass="button" style="margin-left: 5px"/>

<t:dataTable id="cpxss" var="cpxs" style="margin-top: 10px"
    value="#{cpxsList.cpxss}" rows="25" sortColumn="#{cpxsList.sortColumn}"
    sortAscending="#{cpxsList.ascending}" styleClass="scrollerTable table"
    headerClass="standardTable_Header" rowClasses="standardTable_Row1,standardTable_Row2"
    columnClasses="standardTable_Column,standardTable_Column,standardTable_Column,standardTable_Column,standardTable_ColumnCentered">


    <t:column>
        <f:facet name="header">
        	<h:outputText value="#{text['button.delete']}"/>
        </f:facet>
        <h:selectBooleanCheckbox id="checked" binding="#{cpxsList.checked}"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="gycpmc" arrow="true">
                <h:outputText value="#{text['cpxs.gycpmc']}" />
            </t:commandSortHeader>
        </f:facet>
        <h:commandLink action="#{cpxsForm.edit}" value="#{cpxs.gycpmc}">
            <f:param name="cpxsid" value="#{cpxs.id}"/>
            <f:param name="from" value="list"/>
        </h:commandLink>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="hkjsfs" arrow="true">
                <h:outputText value="#{text['cpxs.hkjsfs']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{cpxs.hkjsfs}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="ncl" arrow="true">
                <h:outputText value="#{text['cpxs.ncl']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{cpxs.ncl}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="nscnl" arrow="true">
                <h:outputText value="#{text['cpxs.nscnl']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{cpxs.nscnl}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="ny" arrow="true">
                <h:outputText value="#{text['cpxs.ny']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{cpxs.ny}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="qymc" arrow="true">
                <h:outputText value="#{text['cpxs.qymc']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{cpxs.qymc}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="qyxse" arrow="true">
                <h:outputText value="#{text['cpxs.qyxse']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{cpxs.qyxse}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="qyzyl" arrow="true">
                <h:outputText value="#{text['cpxs.qyzyl']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{cpxs.qyzyl}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="sfwd" arrow="true">
                <h:outputText value="#{text['cpxs.sfwd']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{cpxs.sfwd}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="xh" arrow="true">
                <h:outputText value="#{text['cpxs.xh']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{cpxs.xh}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="xsze" arrow="true">
                <h:outputText value="#{text['cpxs.xsze']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{cpxs.xsze}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="zxl" arrow="true">
                <h:outputText value="#{text['cpxs.zxl']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{cpxs.zxl}" escape="true"/>
    </t:column>
</t:dataTable>

<ui:include src="/common/tableFooter.xhtml">
    <ui:param name="tableName" value="cpxss"/>
</ui:include>

<script type="text/javascript">
    highlightTableRows("editCpxs:cpxss");
</script>

</h:form>
</body>
</f:view>
</html> 